package com.itheima.sh.controller;

import com.itheima.sh.pojo.Brand;
import com.itheima.sh.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 品牌表 前端控制器
 * </p>
 *
 * @author 古月撒么
 */

@RestController
@RequestMapping("/brand")
public class BrandController {

    @Autowired
    private BrandService  brandService;
    @GetMapping
    public List findAll(){
        List<Brand> list = brandService.list();
        return  list;
    }

}
